home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3semaph.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_SEMAPHORE_H = 1;
- include("oops/r3root.js")
-
-
- var R3CLID_SEMAPHORE = 3;
-
-
-
-
- // Description: Obtain semaphore. If semaphore is obtained, call return immediately. If not, the thread is
- // put to sleep.
- // p3: Integer, see access types below
-
- R3SEMM_OBTAIN = 3000;
-
- function mR3SEMM_OBTAIN(p3) {
- DoA(this.r3obj, 3000, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Attemp to lock semaphore. If cannot be locked, call return immediately with FALSE return
- // value. Otherwise the semaphore is locked and TRUE is returned.
- // Returns: Boolean, FALSE if semaphore cannot be locked by us
- // p3: Integer, see access types below
-
- R3SEMM_ATTEMPT = 3001;
-
- function mR3SEMM_ATTEMPT(p3) {
- return DoA(this.r3obj, 3001, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Release semaphore locked using ATTEMP or OBTAIN methods
-
- R3SEMM_RELEASE = 3002;
-
- function mR3SEMM_RELEASE() {
- DoA(this.r3obj, 3002, 0, R3TID_INTEGER, 0);
- }
-
-
-
-
- var R3SEMA_Task = 3502; // Object
- var R3SEM_SHARED = 0;
- var R3SEM_EXCLUSIVE = 1;
-
-
- function r3Semaphore () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_SEMAPHORE, arguments);
- }
- // Methods
- this.OBTAIN=mR3SEMM_OBTAIN;
- this.ATTEMPT=mR3SEMM_ATTEMPT;
- this.RELEASE=mR3SEMM_RELEASE;
-
- // Attributes
- }
-
- r3Semaphore.prototype=new r3Root;
- // r3semaph.h_H